package com.bestcem.xm.award.dao.mapper;


import com.bestcem.xm.award.entity.mysql.AwardRedPacketStatsEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;

@Mapper
public interface AwardRedPacketStatsMapper {

    int insert(AwardRedPacketStatsEntity record);

    AwardRedPacketStatsEntity selectByPrimaryKey(String awardId);

    int addCountAndAmountByAwardId(@Param("awardId") String awardId, @Param("count") long count, @Param("amount") long amount, @Param("updateTime") Date now);

}